<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" version="2.0">
	<jsp:directive.page contentType="text/html; charset=ISO-8859-1"
		pageEncoding="ISO-8859-1" session="false" />
	<jsp:output doctype-root-element="html"
		doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
		omit-xml-declaration="true" />
	<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Add Product Rating</title>
</head>
<body>
	<c:choose>
		<c:when test="${userSession.type == 'User'}">
			<jsp:include page="/WEB-INF/jsp/page.header.jsp"></jsp:include>
		</c:when>
		<c:otherwise>
			<jsp:include page="/WEB-INF/jsp/admin/header.jsp"></jsp:include>
		</c:otherwise>
	</c:choose>
	<div style="text-align: left">

		<h1>Add Product Rating</h1>
		<h4>Product Name: ${product.name}</h4>
		<form action="/service/product.saverating.action" method="POST">
			<input type="hidden" value="${product.productId}" name="id" id="id" />
			<table border="0" cellpadding="0" cellspacing="0">

				<tr>
					<td align="left">Rating</td>
					<td>&#160;:&#160;</td>
					<td>&#160; <SELECT name='prodRating' id="prodRating">
							<option value='1'>1 - Very Poor</option>
							<option value='2'>2 - Poor</option>
							<option value='3'>3 - Neutral</option>
							<option value='4'>4 - Good</option>
							<option value='5'>5 - Very Good</option>
					</SELECT> &#160;
					</td>
				</tr>
				<tr valign="top">
					<td>Comment</td>
					<td>&#160;:&#160;</td>
					<td><textarea rows="5" cols="20" name="buyerComment"
							id="buyerComment">&#160;</textarea></td>
				</tr>
				<tr>
					<td colspan="3">&#160;</td>
				</tr>
				<tr valign="top">
					<td colspan="2">&#160;&#160;</td>
					<td><input type="submit" value="Submit" id="btnSubmit" /></td>
				</tr>
			</table>
		</form>

	</div>

</body>
	</html>
</jsp:root>